package com.chenchao.designer.abstractFactory;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/14 14:55
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.javadesigner.abstractFactory.Test3.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 */
public class Test {
    public static void main(String[] args) {
        HuaweiFactoryImpl huaweiFactory = new HuaweiFactoryImpl();
        huaweiFactory.getCpu().run();
        huaweiFactory.getScreen().show();
        XiaomiFactoryImpl xiaomiFactory = new XiaomiFactoryImpl();
        xiaomiFactory.getCpu().run();
        xiaomiFactory.getScreen().show();
    }
}
